package com.zhuidian.mothernote.activity;

import android.content.Intent;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.base.presenter.BasePresenter;
import com.zhuidian.mothernote.R;
import com.zhuidian.mothernote.global.BaseActivity;

public class QuestionActivitiy extends BaseActivity {
    private RelativeLayout ll_title;
    private ImageView iv_delete;
    private TextView tv_save;
    private TextView tv_send_out;
    private RelativeLayout rl_add_label;
    private TextView tv_add_label;
    private RelativeLayout rl_red_reward;
    private TextView tv_red_endevelop_answer;

    @Override
    protected int inflateMainLayoutId() {
        return R.layout.activity_question;
    }

    @Override
    protected void initView(View view) {
        setTopGone();
        ll_title = (RelativeLayout) view.findViewById(R.id.ll_title);
        iv_delete = (ImageView) view.findViewById(R.id.iv_delete);
        tv_save = (TextView) view.findViewById(R.id.tv_save);
        tv_send_out = (TextView) view.findViewById(R.id.tv_send_out);
        rl_add_label = (RelativeLayout) view.findViewById(R.id.rl_add_label);
        tv_add_label = (TextView) view.findViewById(R.id.tv_add_label);
        rl_red_reward = (RelativeLayout) view.findViewById(R.id.rl_red_reward);
        tv_red_endevelop_answer = (TextView) view.findViewById(R.id.tv_red_endevelop_answer);
    }

    @Override
    protected void setListener() {
        iv_delete.setOnClickListener(this);
        tv_save.setOnClickListener(this);
        tv_send_out.setOnClickListener(this);
        rl_add_label.setOnClickListener(this);
        rl_red_reward.setOnClickListener(this);
    }

    @Override
    protected BasePresenter getPresenter() {
        return null;
    }

    @Override
    public void onClick(View view) {
        super.onClick(view);
        switch (view.getId()) {
            case R.id.iv_delete:
                onBackPressed();
                break;
            case R.id.rl_red_reward:
                startActivity(new Intent(context,RedPackRewardSettingActivity.class));
                break;
        }
    }
}
